//批号调整单
import request from "@/utils/request";

//获取批号调整单数据
/**
 * inOrOutType:materialRequisition -- 简单生产领料
 * inOrOutType:materialReturn -- 简单生产退料
 * inOrOutType:spInStock -- 简单生产入库
 * inOrOutType:returnToStock -- 简单生产退库
 * inOrOutType:productionReturn -- 生产退库单
 */
export const loadListapi = (parameter) => {
    return request({
        url:"/lotAdjusts/pages",
        method:"get",
        params:parameter
    })
}


//查询仓库信息接口
export function reqWareHouseInfo () {
    return request ({
        url:"/api/stocks/warehouseList1",
        method:"get"
    })
}


//更新某生产入库单(创建状态->生效 生效->完成)
export function reqUpdateProductionMaterial (parameter) {
    return request({
        url:"/api/stocks/updateStock1",
        method:"put",
        data:{
            inOrOutType:"returnToStock",
            orderNumber:parameter.orderNumber,
            state:parameter.state
        }
    })
}

